<template>
  <div>
    <el-tag>跟进记录</el-tag>
    {{id}}
    <div v-for="item in dataList" style="font-size: 10px">
      <el-row>
        <el-col :span="8"><span>更进状态</span></el-col>
        <el-col :span="16"><span>{{item.status}}</span></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"><span>下次跟进时间</span></el-col>
        <el-col :span="16"><span>{{item.nextTime}}</span></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"><span>沟通重点</span></el-col>
        <el-col :span="16"><span>{{item.communicationpoint}}</span></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"><span>意向等级</span></el-col>
        <el-col :span="16"><span>{{item.level}}</span></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"><span>意向学科</span></el-col>
        <el-col :span="16"><span> {{item.subject}}</span></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"><span>沟通内容</span></el-col>
        <el-col :span="16"><span>{{item.jiyao}}</span></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"><span>记录人</span></el-col>
        <el-col :span="16"><span>{{item.operName}}</span></el-col>
      </el-row>
      <el-row>
        <el-col :span="8"><span>记录时间</span></el-col>
        <el-col :span="16"><span>{{item.lastupdatetime}}</span></el-col>
      </el-row>



      <hr>
    </div>
  </div>
</template>

<script>
  // import {list} from "@/api/monitor/operlog";
  import {listTrackLog} from "@/api/crm/trackLog";


  export default {
        name: "track-list",
        props:['id'],
    dicts:['course_subject'],
    data(){
          return{
           dataList:[],
          }
    },
    created() {
         // this.getList();
      this.parseData();
    },
    methods: {
          getList(){
           list({title:'商机'}).then(res=>{
             // console.log(res)
              this.dataList=this.parseData(res.rows);
             // console.log(this.dataList)
           })
      },
      parseData(result){
       // let list=[];
       // if(result && result.length>0){
       //   for (let item of result){
       //     let operParam = (JSON.parse(item.operParam))
       //     if(operParam.id == this.id){
       //      item.operParam = operParam
       //       list.push(item)
       //     }
       //   }
       // }
        listTrackLog({id:this.id, table:"商机"}).then(resp=>{
          this.dataList=resp.rows
        })
         // return  list;
      }
    }
  }
</script>

<style scoped>

</style>
